package com.bifrost;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;

@SpringBootApplication(scanBasePackages = {"com.bifrost.*", "com.bifrost.admin", "com.bifrost.wechat", "com.bifrost.web", "com.bifrost.uid.*"})
@EnableCaching
@EnableAspectJAutoProxy (exposeProxy = true)
@EnableAsync(proxyTargetClass = true)
//hello world
public class MallApplication /*extends SpringBootServletInitializer*/{

    /*@Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(MallApplication.class);
    }*/
    public static void main(String[] args) {
     /*   SpringApplication application = new SpringApplication(MallApplication.class);
        //配置事件监听器
        application.addListeners(new ClearBonusListener());
        ConfigurableApplicationContext context =application.run(args);
        //发布事件
        context.publishEvent(new ClearBonusEvent(new Object()));
        context.close();*/
        SpringApplication.run(MallApplication.class, args);
        System.out.println("**************start success*****************");
        System.out.println("hello world");
    }
}
